package com.atguigu.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author lk
 * @version 1.0.0
 * @Description GulimallWebConfig
 * @createTime 2024/1/24 13:07
 */
@Configuration
public class GulimallWebConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        System.out.println("ddd");
        //1.将登录请求与登录视图进行绑定
       // registry.addViewController("/login.html").setViewName("login");
        //2.将注册请求与注册视图进行绑定
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
